<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class City extends CI_Controller {
		
	function __construct()
	{
		parent::__construct();
		$this->load->model('citymodel');
	}

    /**
     * Index
     */
    public function index()
	{	    	    	    
	    //$result = mssql_fetch_assoc();  		
	    $data['rows'] = $this->citymodel->getAll();
	    $data['current_city'] = AppGlobal::$current_city;
	    $this->load->view($this->template->complie('city'), $data);
	}

}